import random
from math import exp

class Common:
	def r01(self, precision = 10**5):
		   return random.randrange(0, precision) / float(precision)

	def gaussian(self, a, b, c, x):
		return a * exp(-((x-b) ** 2 / (2 * (c ** 2))))